varying vec4 color;

void main()
{
//	vec3 normal = normalize(gl_NormalMatrix * gl_Normal);
//	vec3 position = vec3(gl_ModelViewMatrix * gl_Vertex);
//	vec3 lightVector = normalize(gl_LightSource[0].position.xyz - position);
//	vec4 diffuse = gl_FrontLightProduct[0].diffuse * max(0.0, dot(normal,lightVector));
	color = gl_FrontLightModelProduct.sceneColor + gl_FrontLightProduct[0].diffuse;// + gl_FrontLightProduct[0].diffuse;// + diffuse;
	
	gl_TexCoord[0] = gl_MultiTexCoord0;
	
	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}